//
//  LanguageSelectView.h
//  translateAi
//
//  Created by 陈镇 on 2023/5/7.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol LanguageSelectViewDelegate <NSObject>

-(void)selector_code:(NSString *)or_code ta_code:(NSString *)ta_code;

@end


@interface LanguageSelectView : UIView
/** 原文code*/
@property (nonatomic, strong) NSString * or_code;
/** 译文code*/
@property (nonatomic, strong) NSString * ta_code;

/** <#注释#>*/
@property (nonatomic, copy) NSString * type;

@property (nonatomic, weak) id<LanguageSelectViewDelegate> delegate;


-(void)settingOrTitle:(NSString *)orTitle taTitle:(NSString *)taTitle;
@end


@interface LanguageSelectView (country)

-(NSString *)getLanguageCode:(NSString *)language;
-(NSString *)getVoiceLanguageCode:(NSString *)language;


+(NSArray<NSString *> *)mylanguageList:(NSString *)type;

+(NSString *)getLanguageCode:(NSString *)language type:(NSString *)type;

@end

NS_ASSUME_NONNULL_END
